package com.sto.springmvc.source;

import com.alibaba.druid.pool.DruidDataSource;
import com.sto.springmvc.utils.DesUtil;

public class MyDruidDataSource extends DruidDataSource {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7474746259704919170L;

	@Override
	public void setUrl(String jdbcUrl) {
		try {
			super.setUrl(DesUtil.decrypt(jdbcUrl));
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
